package com.lening.community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.common.web.Request;
import com.lening.community.dto.HouseDto;
import com.lening.community.mapper.HouseMapper;
import com.lening.community.pojo.House;
import com.lening.community.service.HouseService;
import com.lening.community.vo.TableVo;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ToDo:
 * @Author：潘万法
 * @date: 2024/6/3 17:05
 */
@Service
public class HouseServiceImpl extends BaseServiceImpl<HouseMapper, House, HouseDto>
implements HouseService {

    @Override
    public Page<House> page(HouseDto houseDto) {
        return this.baseMapper.page(houseDto);
    }

    @Override
    public List<House> getUnit(Long HouseHid) {
        return this.baseMapper.getUnit(HouseHid);
    }

    @Override
    public List<House> find() {
        return this.baseMapper.find();
    }

    @Override
    public int insert(House house) {
        return this.baseMapper.insert(house);
    }

    @Override
    public List<TableVo> getAllHouse() {
        return this.baseMapper.getAllHouse();
    }

    @Override
    public int getCount() {
        return this.baseMapper.getCount();
    }


    @Override
    public House getById(Long id) {
        return this.baseMapper.getById(id);
    }



}
